﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPageAdmin.master" AutoEventWireup="true" CodeFile="VacancyManager.aspx.cs" Inherits="Admin_VacancyManager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link rel="Stylesheet" href="style/StyleSheetAddmin.css" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentmain" Runat="Server">
    <div class="Hrmanagermenu">
    <h2>Vacancy Manager</h2>
    </div>    
    <div class="Hrmanagevalue">
        <asp:DropDownList ID="ddlSearch" runat="server">
            <asp:ListItem>VacancyID</asp:ListItem>
            <asp:ListItem>Vacancy Title</asp:ListItem>
        </asp:DropDownList>
    <asp:TextBox ID="txtsearch" runat="server"></asp:TextBox>
    <asp:Button ID="btnSearch" runat="server" Text="Search..."  Width="100px" CssClass="btnSearch"
             onclick="btnSearch_Click"/>
    </div>
    <div class="dvGripview">
        <asp:GridView ID="gvwHrManager" runat="server" AutoGenerateColumns="False" 
            Width="700px" BackColor="White" BorderColor="#3366CC" BorderStyle="None" 
            BorderWidth="1px" CellPadding="4" Font-Size="12px" PageSize="20" 
            AllowPaging="True" ShowHeaderWhenEmpty="True">
            <Columns>
                <asp:TemplateField HeaderText="ID">
                    <ItemTemplate>
                        <a href="VacancyDetails.aspx?ID=<%# Eval("VacancyID") %>" style="text-decoration:underline;color:#0000CC;"><asp:Label ID="lblVacancyID" runat="server" Text='<%# Eval("VacancyID") %>'></asp:Label></a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Title">
                <ItemTemplate>
                        <asp:Label ID="lblTitle" runat="server" Text='<%# Eval("Title") %>' ></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="UserName">
                    <ItemTemplate>
                        <a href="AdminViewEmployeeInfor.aspx?ID=<%# Eval("UserName") %>" style="text-decoration:underline;color:#0000CC;">    
                            <asp:Label ID="lblUserName" runat="server" Text='<%# Eval("UserName") %>'></asp:Label>
                        </a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="NumberOfJob">
                <ItemTemplate>
                        <a href="ListApplicantManagement.aspx?ID=<%# Eval("VacancyID") %>" style="text-decoration:underline;color:#0000CC;">
                            <asp:Label ID="lblNumberOfJob" runat="server" Text='<%# Eval("NumberOfJob") %>' Width="100px"></asp:Label>
                        </a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Salary">
                <ItemTemplate>
                        <asp:Label ID="lblBirthOfDate" runat="server" Text='<%# Eval("Salary") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="DateFulfilled">
                <ItemTemplate>
                        <asp:Label ID="lblDateFulfilled" runat="server" Text='<%# Eval("DateFulfilled") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
            <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" 
                Font-Size="15px" />
            <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
            <RowStyle BackColor="White" ForeColor="#003399" />
            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <SortedAscendingCellStyle BackColor="#EDF6F6" />
            <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
            <SortedDescendingCellStyle BackColor="#D6DFDF" />
            <SortedDescendingHeaderStyle BackColor="#002876" />
        </asp:GridView>
    </div>
</asp:Content>

